php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#220767 - 07/07/02 08:42 AM [6.x] Restrict Moderators 1.04
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
NAME: Restrict Moderators <br />VERSION: 1.0.4 <br />DESCRIPTION: Globally enable/disable selected moderator privileges. <br />WORKING UNDER: UBB.threads 6.0.0 - 6.2 <br />PREREQUISITES: none <br />AUTHOR: Dave_L <br />CREDITS: Lisa_P (for explaining how the privileges are checked, and for beta testing) <br />DEMO: none <br />FILES ALTERED: admin/banuser.php, admin/dobanuser.php, admin/doeditboard.php, admin/dounbanuser.php, <br /> admin/editboard.php, admin/unbanuser.php, admin/showstats.php, admin/menu.php, config.inc.php <br />DATABASE ALTERED: no <br />NEW FILES: none <br /> <br />HISTORY: <br /> 2002-06-10 Dave_L - 1.0.0 Original release <br /> 2002-06-15 Dave_L - 1.0.1 Description updated (no code changes) <br /> 2002-07-07 Dave_L - 1.0.2 Description updated (no code changes) <br /> 2003-01-03 Dave_L - 1.0.3 Added $config['tbprefix'] for compatibility with 6.1 and 6.2. <br /> 2003-01-05 Dave_L - 1.0.4 Fixed typo.


Attachments
52055-restrict_moderators_1-0-4.zip (63 downloads)

_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#220768 - 07/09/02 12:32 PM Re: Restrict Moderators 1.0 [Re: joeuser]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
You get to select individual moderators and grant permissions?
_________________________
- Allen wavey
- What Drives You?

Top
#220769 - 07/09/02 02:23 PM Re: Restrict Moderators 1.0 [Re: SurfMinister]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
No, the permissions apply to all moderators. In the description, "selected" refers to selecting the privilege, not the moderator. Maybe that should be reworded.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#220770 - 07/09/02 04:04 PM Re: Restrict Moderators 1.0 [Re: joeuser]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
ok, makes sense <img src="/forum/images/icons/smile.gif" alt="" /><br /><br />i am sure there are those out there who are new to running threads and have no idea what privileges moderators have on their boards <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#220771 - 07/09/02 04:16 PM Re: Restrict Moderators 1.0 [Re: SurfMinister]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Here's the extended description for the hack. If you think it's worthwhile, you could append the following to the original post above, and then delete this post.<br /><br />********<br />ABSTRACT<br />********<br /><br />The following configuration parameters are added:<br /><br /> mod_editforum - allow moderators to edit forums<br /> mod_ban - allow moderators to ban a user or IP<br /> mod_unban - allow moderators to unban a user or IP<br /> mod_viewallstats - allow moderators to view stats for all forums, including those not readable by the moderator<br /><br />To use these parameters, specify them in Admin/Edit config settings ("The following variables are unknown to the base UBB.threads package, but might be used by installed hacks or modifications to the program"). They can also be manually added by editing config.inc.php. A value of '1' enables the moderator privilege, a value of '0' disables the privilege. If a parameter is not specified, that's equivalent to specifying it as '0'.<br /><br />Here is an example of specifying the parameters. In this example, moderators are denied the privileges of editing forums and viewing all stats, and are given the privileges of banning and unbanning users:<br /><br /> $config['mod_editforum'] = '0';<br /> $config['mod_ban'] = '1';<br /> $config['mod_unban'] = '1';<br /> $config['mod_viewallstats'] = '0';
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#220772 - 07/09/02 05:05 PM Re: Restrict Moderators 1.0 [Re: SurfMinister]
Gardener Offline
Addict

Registered: 05/11/99
Posts: 1966
Loc: Sweden, Stockholm
Yeah, I remember the first time a moderator asked if it was OK that he changed a user (after a request), I hadn't had a qlue that they could do that. And before that I was a bit confused when a moderator posted some stats from the forum, I didn't know that either. Back then I don't think I even knew they had an admin page at all, only that they had the post edit options. =] But I trust my moderators and already had a bunch of admins that I knew could do anything.<br /><br />Maybe just a short description on the add mod privs-option telling what they will be able to do would be a good idea.
_________________________
/Gardener | Complete list of my mods

Top
#220773 - 08/24/02 03:01 PM Re: Restrict Moderators 1.0 [Re: c0bra]
ExcelsiorDDZ Offline
Member

Registered: 08/09/99
Posts: 234
Loc: New York
It owuld be nice to see the ability to NOT allow moderators to edit a user profile, but allow the moderator to add users to the groups they are members of only.
_________________________
Silly ricer.. Wings are for airplanes!

Top
#220774 - 08/26/02 09:43 AM Re: Restrict Moderators 1.0 [Re: Franky]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Good idea. I don't really have the time to work on that right now, but if someone else wants to figure out exactly what changes would be required, I could probably incorporate it into this hack.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#220775 - 09/30/02 12:55 PM Re: Restrict Moderators 1.0 [Re: joeuser]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Working great, although I had to make some changes for it to work in conjunction with the group moderators, maybe you found a different way around it, but this is the code I used:<br /><br /><pre><font class="small">code:</font><hr>// DAVE MOD BEGIN<br />// 2002-06-10 Dave Lerner<br />// Remove links for privileges that are denied to moderators.<br /><br /> if ($config['modedit'] or $config['mod_ban'] or $config['mod_unban']) {<br /> $html -> open_admin_table();<br />echo <<<EOF<br /> <tr><td valign=top class=tdheader><br /> <b>User Management</b> <br /> </td></tr> <br /> <tr><td valign=top class=lighttable width=30%><br />EOF;<br /> if ($config['modedit']) {<br /> echo "<a href='{$config['phpurl']}/admin/selectusers.php?Cat=$Cat' target='mainFrame'>Show / Edit Users</a><br />";<br /> }<br /> if ($config['mod_ban']) {<br /> echo "<a href='{$config['phpurl']}/admin/banuser.php?Cat=$Cat' target='mainFrame'>Ban a User / Host</a><br />";<br /> }<br /> if ($config['mod_unban']) {<br /> echo "<a href='{$config['phpurl']}/admin/unbanuser.php?Cat=$Cat' target='mainFrame'>Unban User / IP</a>";<br /> }<br />EOF;<br /> $html -> close_table();<br /> echo "<p>";<br /> }<br /><br /><br /> if ($config['mod_editforum']) {<br /> $html -> open_admin_table();<br />echo <<<EOF<br /> <tr><td valign=top class=tdheader><br /> <b>Forum Management</b> <br /> </td></tr> <br /> <tr><td valign=top class=lighttable><br /> <a href="{$config['phpurl']}/admin/editboard.php?Cat=$Cat" target="mainFrame"><br /> Edit a forum <br /> </a><br />EOF;<br /> $html -> close_table();<br /> echo "<p>";<br /> }<br />// Start Group Moderator Hack<br />$html -> open_admin_table();<br />echo <<<EOF<br /> <tr><td valign=top class=tdheader><br /> <b>Group Management</b> <br /> </td></tr> <br /> <tr><td valign=top class=lighttable width=30%><br /> <a href="{$config['phpurl']}/admin/pickuser.php" target="mainFrame"><br /> Add User to a Group<br /> </a><br /> <br><br />EOF;<br />$html -> close_table();<br />echo <<<EOF<br /><br><br />EOF;<br />// End Group Moderator Hack<br /><br />// DAVE MOD END</pre><hr>

Top
#220776 - 09/30/02 03:59 PM Re: Restrict Moderators 1.0 [Re: palmen]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
(Note: the above changes are for admin/menu.php.)<br /><br />Thanks. Personally, I'm not interested in the group moderators hack, but that may be useful to others. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />admin/menu.php is a messy file to hack, isn't it? <img src="/forum/images/graemlins/frown.gif" alt="" />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#220777 - 09/30/02 04:05 PM Re: Restrict Moderators 1.0 [Re: joeuser]
msula Offline
Addict

Registered: 02/18/02
Posts: 1969
Loc: Lansing, Michigan
Yes, it took me about 20 minutes to get it to look right w/o errors.. but at least it works <img src="/forum/images/graemlins/cool.gif" alt="" />

Top
#220778 - 01/02/03 01:53 PM Re: [6.0.x] Restrict Moderators 1.0 [Re: joeuser]
Maze Offline
Enthusiast

Registered: 10/13/99
Posts: 468
Hello Dave,<br /><br />looks like "Restrict Moderators" does not work properly with ubbt 6.2. A moderator can see all board-infos (Information / Forum info) even if he is not the moderator of them.<br /><br />Any chance we see an update some time? <img src="/forum/images/graemlins/wink.gif" alt="" />

Top
#220779 - 01/02/03 05:08 PM Re: [6.0.x] Restrict Moderators 1.0 [Re: mcse007]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
The only change needed that I could find was to replace<br /><br />FROM [:"red"]w3t_[/]Users<br /><br />with<br /><br />FROM [:"red"]{$config['tbprefix']}[/]Users<br /><br />in the changes to admin/showstats.php.<br /><br />But that should only matter if you're not using "w3t_" as your table prefix, and even then, you should have gotten a MySQL error. <img src="/forum/images/graemlins/confused.gif" alt="" /><br /><br /><br /><br />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#220780 - 01/03/03 04:50 AM Re: [6.0.x] Restrict Moderators 1.0 [Re: joeuser]
Maze Offline
Enthusiast

Registered: 10/13/99
Posts: 468
<img src="/forum/images/graemlins/blush.gif" alt="" /> My fault, it still works. I thought the board info will only be shown when I'm moderator for these. But it shows the boards where I have got read-access. So, everything fine, sorry.

Top
#220781 - 01/03/03 06:12 AM Re: [6.0.x] Restrict Moderators 1.0 [Re: mcse007]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
<img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#220782 - 02/14/03 06:16 AM Re: Restrict Moderators 1.0 [Re: joeuser]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
I have one questions to this hack cause <br />I am missing a feature. <br /> <br />My mods need to add people to groups and should be able to change their forum but they should not be allowed to edit user profiles. <br /> <br />If they access the admin menu they can add a user to a group editing their profiles but they can also see the users private emailaddress and thats nothing I and the other users really want I think. <br /> <br />So adding users to group or removing should be possible but no other change to the profile should be allowed for the mods. <br /> <br />How can I do so?
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
#220783 - 02/14/03 06:21 AM Re: Restrict Moderators 1.0 [Re: Franky]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
[]It owuld be nice to see the ability to NOT allow moderators to edit a user profile, but allow the moderator to add users to the groups they are members of only. [/]<br /><br />DAMN, thats exactly what I need. Has anyone implemented this, I need it urgently!
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
#220784 - 02/14/03 08:34 AM Re: Restrict Moderators 1.0 [Re: edr]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Suggestions:<br /><br />1) You could learn PHP and figure out how to do this yourself. <br /><br />2) Post a request in the Developer for Hire forum. If you're willing to pay for this, you're more likely to get someone to do it for you.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#220785 - 02/14/03 08:51 AM Re: Restrict Moderators 1.0 [Re: joeuser]
jluerken Offline
Member

Registered: 08/27/02
Posts: 233
Do you had a bad day Dave <img src="/forum/images/graemlins/confused.gif" alt="" /><br />Never read such an answer from you before <img src="/forum/images/graemlins/frown.gif" alt="" />
_________________________
Ciao jluerken
--------------------
www.uce-clan.de www.clanforums.com

[]http://www.uce-clan.de/images/uce_banner2.gif[/]

Top
#220786 - 02/14/03 09:00 AM Re: Restrict Moderators 1.0 [Re: edr]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Those were intended to be practical, helpful suggestions. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
Page 1 of 2 1 2 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks